package com.jasonjan.jiance.api;

import com.jasonjan.jiance.bean.HomeNews;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by jasonjan on 2018/3/13.
 */

public interface IHomeApi {

   /* @FormUrlEncoded
    @POST("FundPaperTrade/AppUserLogin")
    Observable<Response> getTransData(@FieldMap Map<String,String> map);*/

    @POST("list/guidance")
    @Headers({ "Content-Type: application/json;charset=UTF-8"})
    Observable<HomeNews> getGuidance(@Body RequestBody body);


    @POST("list/summary")
    @Headers({ "Content-Type: application/json;charset=UTF-8"})
    Observable<HomeNews> getSummary(@Body RequestBody body);

}
